package com.kang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.bean.Dialogue;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DialogueService extends IService<Dialogue> {

    void saveDialogue(Long fromUserId, Long toUserId, String msg, int msgType, int type, int isRead);

    List<Dialogue> getNotReadDialogue(Long fromUserId, Long toUserId);

    void saveRead(List<Dialogue> list);

    List<Dialogue> getHistorIcalNews(Long toUserId, HttpServletRequest request);
}
